@charset 'UTF-8';

@import "~/scss/themes/index.scss";
@import "~/scss/helpers/_text.scss";

/*******************************
          分割线
*******************************/

//页面卡片
.g2-card {
  max-width: 100%;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  // width: 160px;
  min-height: 0;
  background: #fff;
  padding: 0;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
  -webkit-transition: box-shadow 0.1s ease, -webkit-transform 0.1s ease;
  transition: box-shadow 0.1s ease, -webkit-transform 0.1s ease;
  transition: box-shadow 0.1s ease, transform 0.1s ease;
  transition: box-shadow 0.1s ease, transform 0.1s ease,
    -webkit-transform 0.1s ease;
  background-color: #fff;
  border-radius: $border-radius-base;
  // width: 100%;
  box-shadow: 0 0 2px 1px rgba(0, 21, 41, 0.08);
  box-sizing: border-box;
  & + & {
    margin-top: $h-spacing-base;
  }
  /* 
        卡片头样式
    */
  .card-header {
    @include text-main;
    height: 48px;
    line-height: 48px;
    border-top-right-radius: $border-radius-base;
    border-top-left-radius: $border-radius-base; // display: flex;
    .card-header-title {
      flex: 1;
      @include text-main;
      font-size: 18px;
    }
    .card-header-actions {
      float: right;
    }
    .card-header-action {
      vertical-align: middle;
      margin-right: 8px;
      font-size: 14px;
      color: $brand-wait;
    }
    &.is-bg {
      background-color: $fill-base;
    }
  }
  .card-title {
    @include text-main;
    padding: $h-spacing-base $h-spacing-base ($h-spacing-base / 2);
    .card-title--border {
      border-bottom: $base--border;
    }
  }
  .card-title-action {
    float: right;
    cursor: pointer;
    @include utils-user-select(none);
    @include text-minor;
    &:hover {
      color: $color-text-hover;
    }
    &:hover > i {
      color: $color-text-hover;
    }
  }
  .card-content {
    @include text-normal;
    padding: ($h-spacing-base / 2) $h-spacing-base $h-spacing-base;
  }
  .card-btns {
    padding: ($h-spacing-base / 2) $h-spacing-base ($h-spacing-base / 2); // border-top: $base--border;
    text-align: center;
  }
  &.is-border {
    border: $base--border;
    .card-header {
      border-bottom: $base--border;
    }
  }
}

.g2-card {
  &:hover {
    cursor: pointer;
    z-index: 5;
    background: #fff;
    border: none;
    box-shadow: 0 1px 3px 0 #bcbdbd, 0 0 0 1px #d4d4d5;
  }
  .card-image {
    position: relative;
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 0;
    background: rgba(0, 0, 0, 0.05);
    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: inherit;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
  }
  .card-content {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    border: none;
    border-top: 1px solid rgba(34, 36, 38, 0.1);
    background: 0 0;
    margin: 0;
    padding: 16px;
    box-shadow: none;
    font-size: 14px;
    border-radius: 0;
  }
  .card-content.card-content--extra {
    max-width: 100%;
    min-height: 0 !important;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: static;
    background: 0 0;
    width: auto;
    margin: 0;
    padding: 0.75em 1em;
    top: 0;
    left: 0;
    color: rgba(0, 0, 0, 0.4);
    box-shadow: none;
    -webkit-transition: color 0.1s ease;
    transition: color 0.1s ease;
  }
}

.g2-card.is-plus {
  color: $color-text-base;
  span {
    text-align: center;
    @include utils-center();
  }
  // text-align: center;
  i {
    font-size: 50px;
    font-weight: blod;
  }
  p {
    margin-top: 8px;
    font-size: $base--font-size;
  }
  &:hover {
    color: $color-text-hover;
  }
}

.g2-cards {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: -20px -16px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  .g2-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 20px 16px;
    float: none;
  }
}

.user-card {
  padding: 0 !important;
  .user-card-header {
    padding: 0 15px;
    height: 40px;
    line-height: 39px;
    background: #f5f5f5;
    border-bottom: 1px solid #eaeaea;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    height: 40px;
    line-height: 39px;
  }
  .ucard-header {
    display: flex;
    flex-direction: row;
    padding: 8px 20px;
    border-bottom: $base--border;
    .ucard-avator {
      flex: 0 0 80px;
      img {
        height: 50px;
        width: 50px;
        border-radius: 50%;
      }
    }
    .ucard-mainInfo {
    }
  }
  .user-card-main {
  }
}

.user-detail {
  padding: 10px 20px;
  @include utils-clearfix();
  li {
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    width: 50%;
    float: left;
    & > label {
      font-weight: normal;
      margin: 0;
      float: left;
      color: #999;
      font-size: 12px;
    }
    & > span {
      display: block;
      margin-left: 44px;
    }
  }
}

.g2-card {
  .g2-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2px 0;
    color: $color-text-base;
    font-size: 14px;
    margin-bottom: 4px;
    &:last-child {
      margin-bottom: 0;
    }
    label {
      flex: 0 0 auto;
      padding-right: 8px;
      margin-bottom: 0;
    }
    .link-content {
      flex: 1 1 auto;
    }
  }
}
